package com.imagefake.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * (SysUser)表实体类
 *
 * @author makejava
 * @since 2024-03-05 20:06:17
 */
@SuppressWarnings("serial")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class SysUser extends Model<SysUser> {
//编号
    private Integer userId;
//登陆名
    private String username;
//密码
    private String password;
//邮箱
    private String email;
//性别
    private String sex;
//地址
    private String address;
//是否启动账户0禁用 1启用
    private Integer enabled;
//账户是否没有过期0已过期 1 正常
    private Integer accountNoExpired;
//密码是否没有过期0已过期 1 正常
    private Integer credentialsNoExpired;
//账户是否没有锁定0已锁定 1 正常
    private Integer accountNoLocked;

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    public Serializable pkVal() {
        return this.userId;
    }
}

